<?php

namespace app\home\controller;

use think\Request;

class User
{
    protected $request = null;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    public function info(): \think\response\Json
    {
        $userInfo = [
            'avatarUrl' => '',
            'nickName' => '',
            'phoneNumber' => '',
            'gender' => 2
        ];

        $countsData = [
            'point' => 2,
            'coupon' => 10,
        ];

        $orderTagInfos = [
            ['orderNum' => 1, 'tabType' => 5],
            ['orderNum' => 1, 'tabType' => 10],
            ['orderNum' => 1, 'tabType' => 40],
            ['orderNum' => 0, 'tabType' => 0],
        ];

        $customerServiceInfo = [
            'servicePhone' => '4006336868',
            'serviceTimeDuration' => '每周三至周五 9:00-12:00  13:00-15:00',
        ];


        $result = [
            'userInfo' => $userInfo,
            'countsData' => $countsData,
            'orderTagInfos' => $orderTagInfos,
            'customerServiceInfo' => $customerServiceInfo
        ];

        return success($result);
    }
}